import React from 'react'
import { Button } from 'antd-mobile'
export default class Main extends React.Component {
	state={
		count:0
	}
	handleChange(val) {
		this.setState({ 'count': ++val})
	}
	render() {
		const element = <h1>{this.state.count}</h1>
		return (
			<div>
				<div>{element}</div>
				<Button type="primary" onClick={()=>{this.handleChange(this.state.count)}}>修改条件渲染</Button>
			</div>
		)
	}
}